<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>dpa数据列表</title>
    <link rel="stylesheet" href="__PUBLIC__/css/person.css">
    <link rel="stylesheet" href="__PUBLIC__/dpa/css/page.css">
    <script src="__PUBLIC__/dpa/js/jquery-2.1.4.js"></script>
    <style>
        button{
            margin-left:20px;
            margin-top:50px;
        }

        .right-container table tr td {
            padding-top:3px;
        }
    </style>
</head>
<body>
<!--加载导航条开始-->
<div class="nav-bar">
    <ul>
        <li class="in"><a href="{:U('Home/Index/menu')}">自定义菜单</a></li>
        <li class="in"><a href="{:U('Home/Upload/upload')}">上传excel</a></li>
        <li class="in"><a href="{:U('Home/Index/unit')}">单位信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/personnel')}">人员信息管理</a></li>
        <li class="on"><a href="{:U('Home/Index/schedule')}">dpa数据管理</a></li>
        <li class="in"><a href="{:U('Home/Index/connect')}">交接数据管理</a></li>
        <li  style="background:darkcyan"> <a href="{:U('Home/Index/changepass')}">更改密码</a></li>
        <li style="background:grey"><a href="{:U('Home/Index/unlogin')}">退出登录</a></li>
    </ul>
</div>
<!--加载导航条结束-->
<div class="right-container">
    <h1>dpa数据列表
        <a href="__CONTROLLER__/schadd" class="add">添加</a>
        <a id="drop" href="javascript:;" class="add">清空</a>
    </h1>
    <form action="__ACTION__" method="get">
    <p>
        <span style="font-size:16px">条件查询:</span>
        <input type="text" name="dpasum" placeholder="请输入DPA报告号" value="<?php echo I('get.dpasum'); ?>" >
        <input type="submit" value="查询">
    </p>
    </form>
    <table border="1" style="width:100%">
        <tr >
            <th>dpa报告号</th>
            <th>状态</th>
            <th>工序单号</th>
            <th>型号规格</th>
            <th>规范号</th>
            <th>批次号</th>
            <th>质量等级</th>
            <th>生产单位</th>
            <th>委托单位</th>
            <th>委托人</th>
            <th>委托电话</th>
            <th>委托日期</th>
            <th>预计完成日期</th>
            <th>委托单位编码</th>
            <th>分析结论</th>
            <th>评价与说明</th>
            <th>实际完成日期</th>
            <th>操作</th>
        </tr>
        <foreach name="list" item="v">
        <tr >
            <td>{$v.dpasum}</td>
            <td>{$v.status}</td>
            <td>{$v.gxsum}</td>
            <td>{$v.xhtype}</td>
            <td>{$v.norm}</td>
            <td>{$v.batch}</td>
            <td>{$v.zlgrage}</td>
            <td>{$v.output}</td>
            <td>{$v.requester}</td>
            <td>{$v.client}</td>
            <td>{$v.tel}</td>
            <td>{$v.wtsj|date='Y-m-d',###}</td>
            <td>{$v.wcsj|date='Y-m-d',###}</td>
            <td>{$v.unitsum}</td>
            <td>{$v.end}</td>
            <td>{$v.assess}</td>
            <td>{$v.remark}</td>
            <td style="width:70px">
                <a class="upd" href="{:U('schupd',array('dpasum'=>$v[dpasum]))}" >更改</a> |
                <a class="del" onclick="return confirm('您确定要删除此条数据吗?');" href="{:U('schdel',array('dpasum'=>$v[dpasum]))}" >删除</a>
            </td>
        </tr>
        </foreach>
    </table>
    <div class="green-black">{$page_str}</div>
</div>
</body>
<script>

    $('#drop').click(function(){
        if(confirm('确定要清空数据表吗?')){
            if(confirm('清空数据表之后数据将不能恢复,请谨慎操作')){
                //return false;
                location.href = '__CONTROLLER__/drop';
            }
        }
    })
</script>
</html>